<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5240delta - what is new for perl v5.24.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5240delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5240delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5240delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5240delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5240delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5240delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5240delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5240delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5240delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5240delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5240delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5240delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5240delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5240delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5240delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5240delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5240delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5240delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5240delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5240delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5240delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5240delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5240delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5240delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5240delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5240delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5240delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5240delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5240delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5240delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5240delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5240delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5240delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5240delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5240delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5240delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5240delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5240delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5240delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5240delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5240delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5240delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5240delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5240delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5240delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5240delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5240delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5240delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5240delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5240delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5240delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5240delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5240delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5240delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5240delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5240delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5240delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5240delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5240delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5240delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5240delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5240delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5240delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5240delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5240delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5240delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5240delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5240delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5240delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5240delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5240delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5240delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5240delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5240delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5240delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5240delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5240delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5240delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5240delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5240delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5240delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5240delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5240delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5240delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5240delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5240delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5240delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5240delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5240delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5240delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5240delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5240delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5240delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5240delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5240delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5240delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5240delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5240delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5240delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5240delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5240delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5240delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5240delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5240delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5240delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5240delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5240delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5240delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5240delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5240delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5240delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5240delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5240delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5240delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5240delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5240delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5240delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5240delta.html">perl5240delta</a>
          <div id="more">
            (<a href="perl5240delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5240delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Postfix-dereferencing-is-no-longer-experimental">Postfix dereferencing is no longer experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Unicode-8.0-is-now-supported">Unicode 8.0 is now supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perl-will-now-croak-when-closing-an-in-place-output-file-fails">perl will now croak when closing an in-place output file fails</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#New-%5Cb%7Blb%7D-boundary-in-regular-expressions">New \b{lb} boundary in regular expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#qr/(?%5B-%5D)/-now-works-in-UTF-8-locales">qr/(?[ ])/ now works in UTF-8 locales</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Integer-shift-(%3C%3C-and-%3E%3E)-now-more-explicitly-defined">Integer shift (&lt;&lt; and &gt;&gt;) now more explicitly defined</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#printf-and-sprintf-now-allow-reordered-precision-arguments">printf and sprintf now allow reordered precision arguments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#More-fields-provided-to-sigaction-callback-with-SA_SIGINFO">More fields provided to sigaction callback with SA_SIGINFO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Hashbang-redirection-to-Perl-6">Hashbang redirection to Perl 6</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Security">Security</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Set-proper-umask-before-calling-mkstemp(3)">Set proper umask before calling mkstemp(3)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Fix-out-of-boundary-access-in-Win32-path-handling">Fix out of boundary access in Win32 path handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Fix-loss-of-taint-in-canonpath">Fix loss of taint in canonpath</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Avoid-accessing-uninitialized-memory-in-win32-crypt()">Avoid accessing uninitialized memory in win32 crypt()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Remove-duplicate-environment-variables-from-environ">Remove duplicate environment variables from environ</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#The-autoderef-feature-has-been-removed">The autoderef feature has been removed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Lexical-$_-has-been-removed">Lexical $_ has been removed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#qr/%5Cb%7Bwb%7D/-is-now-tailored-to-Perl-expectations">qr/\b{wb}/ is now tailored to Perl expectations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Regular-expression-compilation-errors">Regular expression compilation errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#qr/%5CN%7B%7D/-now-disallowed-under-use-re-%22strict%22">qr/\N{}/ now disallowed under use re &quot;strict&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Nested-declarations-are-now-disallowed">Nested declarations are now disallowed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#The-/%5CC/-character-class-has-been-removed.">The /\C/ character class has been removed.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#chdir(&#39;&#39;)-no-longer-chdirs-home">chdir(&#39;&#39;) no longer chdirs home</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#ASCII-characters-in-variable-names-must-now-be-all-visible">ASCII characters in variable names must now be all visible</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#An-off-by-one-issue-in-$Carp::MaxArgNums-has-been-fixed">An off by one issue in $Carp::MaxArgNums has been fixed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Only-blanks-and-tabs-are-now-allowed-within-%5B...%5D-within-(?%5B...%5D).">Only blanks and tabs are now allowed within [...] within (?[...]).</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Deprecations">Deprecations</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Using-code-points-above-the-platform&#39;s-IV_MAX-is-now-deprecated">Using code points above the platform&#39;s IV_MAX is now deprecated</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Doing-bitwise-operations-on-strings-containing-code-points-above-0xFF-is-deprecated">Doing bitwise operations on strings containing code points above 0xFF is deprecated</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#sysread(),-syswrite(),-recv()-and-send()-are-deprecated-on-:utf8-handles">sysread(), syswrite(), recv() and send() are deprecated on :utf8 handles</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlapi">perlapi</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlcall">perlcall</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlfunc">perlfunc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlguts">perlguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perllocale">perllocale</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlmodlib">perlmodlib</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlop">perlop</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlpolicy">perlpolicy</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlreftut">perlreftut</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlrebackslash">perlrebackslash</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlsub">perlsub</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlsyn">perlsyn</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perltie">perltie</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlunicode">perlunicode</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlvar">perlvar</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#perlxs">perlxs</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Diagnostics">Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Testing">Testing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Internal-Changes">Internal Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5240delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5240delta.html#NAME">#</a>NAME</h1>

<p>perl5240delta - what is new for perl v5.24.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5240delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes the differences between the 5.22.0 release and the 5.24.0 release.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5240delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="Postfix-dereferencing-is-no-longer-experimental"><a class="permalink" href="perl5240delta.html#Postfix-dereferencing-is-no-longer-experimental">#</a><a id="Postfix"></a>Postfix dereferencing is no longer experimental</h2>

<p>Using the <code>postderef</code> and <code>postderef_qq</code> features no longer emits a warning. Existing code that disables the <code>experimental::postderef</code> warning category that they previously used will continue to work. The <code>postderef</code> feature has no effect; all Perl code can use postfix dereferencing, regardless of what feature declarations are in scope. The <code>5.24</code> feature bundle now includes the <code>postderef_qq</code> feature.</p>

<h2 id="Unicode-8.0-is-now-supported"><a class="permalink" href="perl5240delta.html#Unicode-8.0-is-now-supported">#</a><a id="Unicode"></a>Unicode 8.0 is now supported</h2>

<p>For details on what is in this release, see <a href="http://www.unicode.org/versions/Unicode8.0.0/">http://www.unicode.org/versions/Unicode8.0.0/</a>.</p>

<h2 id="perl-will-now-croak-when-closing-an-in-place-output-file-fails"><a class="permalink" href="perl5240delta.html#perl-will-now-croak-when-closing-an-in-place-output-file-fails">#</a><a id="perl"></a>perl will now croak when closing an in-place output file fails</h2>

<p>Until now, failure to close the output file for an in-place edit was not detected, meaning that the input file could be clobbered without the edit being successfully completed. Now, when the output file cannot be closed successfully, an exception is raised.</p>

<h2 id="New-\b{lb}-boundary-in-regular-expressions"><a class="permalink" href="perl5240delta.html#New-%5Cb%7Blb%7D-boundary-in-regular-expressions">#</a><a id="New"></a><a id="New-b-lb-boundary-in-regular-expressions"></a>New <code>\b{lb}</code> boundary in regular expressions</h2>

<p><code>lb</code> stands for Line Break. It is a Unicode property that determines where a line of text is suitable to break (typically so that it can be output without overflowing the available horizontal space). This capability has long been furnished by the <a href="./Unicode::LineBreak.html">Unicode::LineBreak</a> module, but now a light-weight, non-customizable version that is suitable for many purposes is in core Perl.</p>

<h2 id="qr/(?[-])/-now-works-in-UTF-8-locales"><a class="permalink" href="perl5240delta.html#qr/(?%5B-%5D)/-now-works-in-UTF-8-locales">#</a><a id="qr"></a><a id="qr-now-works-in-UTF-8-locales"></a><code>qr/(?[ ])/</code> now works in UTF-8 locales</h2>

<p><a href="perlrecharclass.html#Extended-Bracketed-Character-Classes">Extended Bracketed Character Classes</a> now will successfully compile when <span style="white-space: nowrap;"><code>use locale</code></span> is in effect. The compiled pattern will use standard Unicode rules. If the runtime locale is not a UTF-8 one, a warning is raised and standard Unicode rules are used anyway. No tainting is done since the outcome does not actually depend on the locale.</p>

<h2 id="Integer-shift-(&lt;&lt;-and-&gt;&gt;)-now-more-explicitly-defined"><a class="permalink" href="perl5240delta.html#Integer-shift-(%3C%3C-and-%3E%3E)-now-more-explicitly-defined">#</a><a id="Integer"></a><a id="Integer-shift-and-now-more-explicitly-defined"></a>Integer shift (<code>&lt;&lt;</code> and <code>&gt;&gt;</code>) now more explicitly defined</h2>

<p>Negative shifts are reverse shifts: left shift becomes right shift, and right shift becomes left shift.</p>

<p>Shifting by the number of bits in a native integer (or more) is zero, except when the &quot;overshift&quot; is right shifting a negative value under <code>use integer</code>, in which case the result is -1 (arithmetic shift).</p>

<p>Until now negative shifting and overshifting have been undefined because they have relied on whatever the C implementation happens to do. For example, for the overshift a common C behavior is &quot;modulo shift&quot;:</p>

<pre><code class="plaintext">1 &gt;&gt; 64 == 1 &gt;&gt; (64 % 64) == 1 &gt;&gt; 0 == 1  # Common C behavior.

# And the same for &lt;&lt;, while Perl now produces 0 for both.</code></pre>

<p>Now these behaviors are well-defined under Perl, regardless of what the underlying C implementation does. Note, however, that you are still constrained by the native integer width: you need to know how far left you can go. You can use for example:</p>

<pre><code>use Config;
my $wordbits = $Config{uvsize} * 8;  # Or $Config{uvsize} &lt;&lt; 3.</code></pre>

<p>If you need a more bits on the left shift, you can use for example the <code>bigint</code> pragma, or the <code>Bit::Vector</code> module from CPAN.</p>

<h2 id="printf-and-sprintf-now-allow-reordered-precision-arguments"><a class="permalink" href="perl5240delta.html#printf-and-sprintf-now-allow-reordered-precision-arguments">#</a><a id="printf"></a>printf and sprintf now allow reordered precision arguments</h2>

<p>That is, <code>sprintf &#39;|%.*2$d|&#39;, 2, 3</code> now returns <code>|002|</code>. This extends the existing reordering mechanism (which allows reordering for arguments that are used as format fields, widths, and vector separators).</p>

<h2 id="More-fields-provided-to-sigaction-callback-with-SA_SIGINFO"><a class="permalink" href="perl5240delta.html#More-fields-provided-to-sigaction-callback-with-SA_SIGINFO">#</a><a id="More"></a>More fields provided to <code>sigaction</code> callback with <code>SA_SIGINFO</code></h2>

<p>When passing the <code>SA_SIGINFO</code> flag to <a href="POSIX.html#sigaction">sigaction</a>, the <code>errno</code>, <code>status</code>, <code>uid</code>, <code>pid</code>, <code>addr</code> and <code>band</code> fields are now included in the hash passed to the handler, if supported by the platform.</p>

<h2 id="Hashbang-redirection-to-Perl-6"><a class="permalink" href="perl5240delta.html#Hashbang-redirection-to-Perl-6">#</a><a id="Hashbang"></a>Hashbang redirection to Perl 6</h2>

<p>Previously perl would redirect to another interpreter if it found a hashbang path unless the path contains &quot;perl&quot; (see <a href="perlrun.html">perlrun</a>). To improve compatibility with Perl 6 this behavior has been extended to also redirect if &quot;perl&quot; is followed by &quot;6&quot;.</p>

<h1 id="Security"><a class="permalink" href="perl5240delta.html#Security">#</a>Security</h1>

<h2 id="Set-proper-umask-before-calling-mkstemp(3)"><a class="permalink" href="perl5240delta.html#Set-proper-umask-before-calling-mkstemp(3)">#</a><a id="Set"></a><a id="Set-proper-umask-before-calling-mkstemp-3"></a>Set proper umask before calling <code>mkstemp(3)</code></h2>

<p>In 5.22 perl started setting umask to 0600 before calling <code>mkstemp(3)</code> and restoring it afterwards. This wrongfully tells <code>open(2)</code> to strip the owner read and write bits from the given mode before applying it, rather than the intended negation of leaving only those bits in place.</p>

<p>Systems that use mode 0666 in <code>mkstemp(3)</code> (like old versions of glibc) create a file with permissions 0066, leaving world read and write permissions regardless of current umask.</p>

<p>This has been fixed by using umask 0177 instead. [perl #127322]</p>

<h2 id="Fix-out-of-boundary-access-in-Win32-path-handling"><a class="permalink" href="perl5240delta.html#Fix-out-of-boundary-access-in-Win32-path-handling">#</a><a id="Fix"></a>Fix out of boundary access in Win32 path handling</h2>

<p>This is CVE-2015-8608. For more information see <a href="https://github.com/Perl/perl5/issues/15067">[GH #15067]</a></p>

<h2 id="Fix-loss-of-taint-in-canonpath"><a class="permalink" href="perl5240delta.html#Fix-loss-of-taint-in-canonpath">#</a><a id="Fix1"></a>Fix loss of taint in canonpath</h2>

<p>This is CVE-2015-8607. For more information see <a href="https://github.com/Perl/perl5/issues/15084">[GH #15084]</a></p>

<h2 id="Avoid-accessing-uninitialized-memory-in-win32-crypt()"><a class="permalink" href="perl5240delta.html#Avoid-accessing-uninitialized-memory-in-win32-crypt()">#</a><a id="Avoid"></a><a id="Avoid-accessing-uninitialized-memory-in-win32-crypt"></a>Avoid accessing uninitialized memory in win32 <code>crypt()</code></h2>

<p>Added validation that will detect both a short salt and invalid characters in the salt. <a href="https://github.com/Perl/perl5/issues/15091">[GH #15091]</a></p>

<h2 id="Remove-duplicate-environment-variables-from-environ"><a class="permalink" href="perl5240delta.html#Remove-duplicate-environment-variables-from-environ">#</a><a id="Remove"></a>Remove duplicate environment variables from <code>environ</code></h2>

<p>Previously, if an environment variable appeared more than once in <code>environ[]</code>, <code>%ENV</code> would contain the last entry for that name, while a typical <code>getenv()</code> would return the first entry. We now make sure <code>%ENV</code> contains the same as what <code>getenv</code> returns.</p>

<p>Second, we remove duplicates from <code>environ[]</code>, so if a setting with that name is set in <code>%ENV</code>, we won&#39;t pass an unsafe value to a child process.</p>

<p>[CVE-2016-2381]</p>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5240delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="The-autoderef-feature-has-been-removed"><a class="permalink" href="perl5240delta.html#The-autoderef-feature-has-been-removed">#</a><a id="The"></a>The <code>autoderef</code> feature has been removed</h2>

<p>The experimental <code>autoderef</code> feature (which allowed calling <code>push</code>, <code>pop</code>, <code>shift</code>, <code>unshift</code>, <code>splice</code>, <code>keys</code>, <code>values</code>, and <code>each</code> on a scalar argument) has been deemed unsuccessful. It has now been removed; trying to use the feature (or to disable the <code>experimental::autoderef</code> warning it previously triggered) now yields an exception.</p>

<h2 id="Lexical-$_-has-been-removed"><a class="permalink" href="perl5240delta.html#Lexical-$_-has-been-removed">#</a><a id="Lexical"></a><a id="Lexical-_-has-been-removed"></a>Lexical $_ has been removed</h2>

<p><code>my $_</code> was introduced in Perl 5.10, and subsequently caused much confusion with no obvious solution. In Perl 5.18.0, it was made experimental on the theory that it would either be removed or redesigned in a less confusing (but backward-incompatible) way. Over the following years, no alternatives were proposed. The feature has now been removed and will fail to compile.</p>

<h2 id="qr/\b{wb}/-is-now-tailored-to-Perl-expectations"><a class="permalink" href="perl5240delta.html#qr/%5Cb%7Bwb%7D/-is-now-tailored-to-Perl-expectations">#</a><a id="qr1"></a><a id="qr-b-wb-is-now-tailored-to-Perl-expectations"></a><code>qr/\b{wb}/</code> is now tailored to Perl expectations</h2>

<p>This is now more suited to be a drop-in replacement for plain <code>\b</code>, but giving better results for parsing natural language. Previously it strictly followed the current Unicode rules which calls for it to match between each white space character. Now it doesn&#39;t generally match within spans of white space, behaving like <code>\b</code> does. See <a href="perlrebackslash.html#%5Cb%7Bwb%7D">&quot;\b{wb}&quot; in perlrebackslash</a></p>

<h2 id="Regular-expression-compilation-errors"><a class="permalink" href="perl5240delta.html#Regular-expression-compilation-errors">#</a><a id="Regular"></a>Regular expression compilation errors</h2>

<p>Some regular expression patterns that had runtime errors now don&#39;t compile at all.</p>

<p>Almost all Unicode properties using the <code>\p{}</code> and <code>\P{}</code> regular expression pattern constructs are now checked for validity at pattern compilation time, and invalid ones will cause the program to not compile. In earlier releases, this check was often deferred until run time. Whenever an error check is moved from run- to compile time, erroneous code is caught 100% of the time, whereas before it would only get caught if and when the offending portion actually gets executed, which for unreachable code might be never.</p>

<h2 id="qr/\N{}/-now-disallowed-under-use-re-&quot;strict&quot;"><a class="permalink" href="perl5240delta.html#qr/%5CN%7B%7D/-now-disallowed-under-use-re-%22strict%22">#</a><a id="qr2"></a><a id="qr-N-now-disallowed-under-use-re-strict"></a><code>qr/\N{}/</code> now disallowed under <code>use re &quot;strict&quot;</code></h2>

<p>An empty <code>\N{}</code> makes no sense, but for backwards compatibility is accepted as doing nothing, though a deprecation warning is raised by default. But now this is a fatal error under the experimental feature <a href="re.html#%27strict%27-mode">&quot;&#39;strict&#39; mode&quot; in re</a>.</p>

<h2 id="Nested-declarations-are-now-disallowed"><a class="permalink" href="perl5240delta.html#Nested-declarations-are-now-disallowed">#</a><a id="Nested"></a>Nested declarations are now disallowed</h2>

<p>A <code>my</code>, <code>our</code>, or <code>state</code> declaration is no longer allowed inside of another <code>my</code>, <code>our</code>, or <code>state</code> declaration.</p>

<p>For example, these are now fatal:</p>

<pre><code>my ($x, my($y));
our (my $x);</code></pre>

<p><a href="https://github.com/Perl/perl5/issues/14799">[GH #14799]</a></p>

<p><a href="https://github.com/Perl/perl5/issues/13548">[GH #13548]</a></p>

<h2 id="The-/\C/-character-class-has-been-removed."><a class="permalink" href="perl5240delta.html#The-/%5CC/-character-class-has-been-removed.">#</a><a id="The1"></a><a id="The-C-character-class-has-been-removed"></a>The <code>/\C/</code> character class has been removed.</h2>

<p>This regular expression character class was deprecated in v5.20.0 and has produced a deprecation warning since v5.22.0. It is now a compile-time error. If you need to examine the individual bytes that make up a UTF8-encoded character, then use <code>utf8::encode()</code> on the string (or a copy) first.</p>

<h2 id="chdir(&#39;&#39;)-no-longer-chdirs-home"><a class="permalink" href="perl5240delta.html#chdir(&#39;&#39;)-no-longer-chdirs-home">#</a><a id="chdir"></a><a id="chdir-no-longer-chdirs-home"></a><code>chdir(&#39;&#39;)</code> no longer chdirs home</h2>

<p>Using <code>chdir(&#39;&#39;)</code> or <code>chdir(undef)</code> to chdir home has been deprecated since perl v5.8, and will now fail. Use <code>chdir()</code> instead.</p>

<h2 id="ASCII-characters-in-variable-names-must-now-be-all-visible"><a class="permalink" href="perl5240delta.html#ASCII-characters-in-variable-names-must-now-be-all-visible">#</a><a id="ASCII"></a>ASCII characters in variable names must now be all visible</h2>

<p>It was legal until now on ASCII platforms for variable names to contain non-graphical ASCII control characters (ordinals 0 through 31, and 127, which are the C0 controls and <code>DELETE</code>). This usage has been deprecated since v5.20, and as of now causes a syntax error. The variables these names referred to are special, reserved by Perl for whatever use it may choose, now, or in the future. Each such variable has an alternative way of spelling it. Instead of the single non-graphic control character, a two character sequence beginning with a caret is used, like <code>$^]</code> and <code>${^GLOBAL_PHASE}</code>. Details are at <a href="perlvar.html">perlvar</a>. It remains legal, though unwise and deprecated (raising a deprecation warning), to use certain non-graphic non-ASCII characters in variables names when not under <span style="white-space: nowrap;"><code>use utf8</code></span>. No code should do this, as all such variables are reserved by Perl, and Perl doesn&#39;t currently define any of them (but could at any time, without notice).</p>

<h2 id="An-off-by-one-issue-in-$Carp::MaxArgNums-has-been-fixed"><a class="permalink" href="perl5240delta.html#An-off-by-one-issue-in-$Carp::MaxArgNums-has-been-fixed">#</a><a id="An"></a><a id="An-off-by-one-issue-in-Carp::MaxArgNums-has-been-fixed"></a>An off by one issue in <code>$Carp::MaxArgNums</code> has been fixed</h2>

<p><code>$Carp::MaxArgNums</code> is supposed to be the number of arguments to display. Prior to this version, it was instead showing <code>$Carp::MaxArgNums</code> + 1 arguments, contrary to the documentation.</p>

<h2 id="Only-blanks-and-tabs-are-now-allowed-within-[...]-within-(?[...])."><a class="permalink" href="perl5240delta.html#Only-blanks-and-tabs-are-now-allowed-within-%5B...%5D-within-(?%5B...%5D).">#</a><a id="Only"></a><a id="Only-blanks-and-tabs-are-now-allowed-within-...-within"></a>Only blanks and tabs are now allowed within <code>[...]</code> within <code>(?[...])</code>.</h2>

<p>The experimental Extended Bracketed Character Classes can contain regular bracketed character classes within them. These differ from regular ones in that white space is generally ignored, unless escaped by preceding it with a backslash. The white space that is ignored is now limited to just tab <code>\t</code> and SPACE characters. Previously, it was any white space. See <a href="perlrecharclass.html#Extended-Bracketed-Character-Classes">&quot;Extended Bracketed Character Classes&quot; in perlrecharclass</a>.</p>

<h1 id="Deprecations"><a class="permalink" href="perl5240delta.html#Deprecations">#</a>Deprecations</h1>

<h2 id="Using-code-points-above-the-platform&#39;s-IV_MAX-is-now-deprecated"><a class="permalink" href="perl5240delta.html#Using-code-points-above-the-platform&#39;s-IV_MAX-is-now-deprecated">#</a><a id="Using"></a><a id="Using-code-points-above-the-platforms-IV_MAX-is-now-deprecated"></a>Using code points above the platform&#39;s <code>IV_MAX</code> is now deprecated</h2>

<p>Unicode defines code points in the range <code>0..0x10FFFF</code>. Some standards at one time defined them up to 2**31 - 1, but Perl has allowed them to be as high as anything that will fit in a word on the platform being used. However, use of those above the platform&#39;s <code>IV_MAX</code> is broken in some constructs, notably <code>tr///</code>, regular expression patterns involving quantifiers, and in some arithmetic and comparison operations, such as being the upper limit of a loop. Now the use of such code points raises a deprecation warning, unless that warning category is turned off. <code>IV_MAX</code> is typically 2**31 -1 on 32-bit platforms, and 2**63-1 on 64-bit ones.</p>

<h2 id="Doing-bitwise-operations-on-strings-containing-code-points-above-0xFF-is-deprecated"><a class="permalink" href="perl5240delta.html#Doing-bitwise-operations-on-strings-containing-code-points-above-0xFF-is-deprecated">#</a><a id="Doing"></a>Doing bitwise operations on strings containing code points above 0xFF is deprecated</h2>

<p>The string bitwise operators treat their operands as strings of bytes, and values beyond 0xFF are nonsensical in this context. To operate on encoded bytes, first encode the strings. To operate on code points&#39; numeric values, use <code>split</code> and <code>map ord</code>. In the future, this warning will be replaced by an exception.</p>

<h2 id="sysread(),-syswrite(),-recv()-and-send()-are-deprecated-on-:utf8-handles"><a class="permalink" href="perl5240delta.html#sysread(),-syswrite(),-recv()-and-send()-are-deprecated-on-:utf8-handles">#</a><a id="sysread"></a><a id="sysread-syswrite-recv-and-send-are-deprecated-on-:utf8-handles"></a><code>sysread()</code>, <code>syswrite()</code>, <code>recv()</code> and <code>send()</code> are deprecated on :utf8 handles</h2>

<p>The <code>sysread()</code>, <code>recv()</code>, <code>syswrite()</code> and <code>send()</code> operators are deprecated on handles that have the <code>:utf8</code> layer, either explicitly, or implicitly, eg., with the <code>:encoding(UTF-16LE)</code> layer.</p>

<p>Both <code>sysread()</code> and <code>recv()</code> currently use only the <code>:utf8</code> flag for the stream, ignoring the actual layers. Since <code>sysread()</code> and <code>recv()</code> do no UTF-8 validation they can end up creating invalidly encoded scalars.</p>

<p>Similarly, <code>syswrite()</code> and <code>send()</code> use only the <code>:utf8</code> flag, otherwise ignoring any layers. If the flag is set, both write the value UTF-8 encoded, even if the layer is some different encoding, such as the example above.</p>

<p>Ideally, all of these operators would completely ignore the <code>:utf8</code> state, working only with bytes, but this would result in silently breaking existing code. To avoid this a future version of perl will throw an exception when any of <code>sysread()</code>, <code>recv()</code>, <code>syswrite()</code> or <code>send()</code> are called on handle with the <code>:utf8</code> layer.</p>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5240delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p>The overhead of scope entry and exit has been considerably reduced, so for example subroutine calls, loops and basic blocks are all faster now. This empty function call now takes about a third less time to execute:</p>

<pre><code>sub f{} f();</code></pre>

</li>
<li><p>Many languages, such as Chinese, are caseless. Perl now knows about most common ones, and skips much of the work when a program tries to change case in them (like <code>ucfirst()</code>) or match caselessly (<code>qr//i</code>). This will speed up a program, such as a web server, that can operate on multiple languages, while it is operating on a caseless one.</p>

</li>
<li><p><code>/fixed-substr/</code> has been made much faster.</p>

<p>On platforms with a libc <code>memchr()</code> implementation which makes good use of underlying hardware support, patterns which include fixed substrings will now often be much faster; for example with glibc on a recent x86_64 CPU, this:</p>

<pre><code>$s = &quot;a&quot; x 1000 . &quot;wxyz&quot;;
$s =~ /wxyz/ for 1..30000</code></pre>

<p>is now about 7 times faster. On systems with slow <code>memchr()</code>, e.g. 32-bit ARM Raspberry Pi, there will be a small or little speedup. Conversely, some pathological cases, such as <code>&quot;ab&quot; x 1000 =~ /aa/</code> will be slower now; up to 3 times slower on the rPi, 1.5x slower on x86_64.</p>

</li>
<li><p>Faster addition, subtraction and multiplication.</p>

<p>Since 5.8.0, arithmetic became slower due to the need to support 64-bit integers. To deal with 64-bit integers, a lot more corner cases need to be checked, which adds time. We now detect common cases where there is no need to check for those corner cases, and special-case them.</p>

</li>
<li><p>Preincrement, predecrement, postincrement, and postdecrement have been made faster by internally splitting the functions which handled multiple cases into different functions.</p>

</li>
<li><p>Creating Perl debugger data structures (see <a href="perldebguts.html#Debugger-Internals">&quot;Debugger Internals&quot; in perldebguts</a>) for XSUBs and const subs has been removed. This removed one glob/scalar combo for each unique <code>.c</code> file that XSUBs and const subs came from. On startup (<code>perl -e&quot;0&quot;</code>) about half a dozen glob/scalar debugger combos were created. Loading XS modules created more glob/scalar combos. These things were being created regardless of whether the perl debugger was being used, and despite the fact that it can&#39;t debug C code anyway</p>

</li>
<li><p>On Win32, <code>stat</code>ing or <code>-X</code>ing a path, if the file or directory does not exist, is now 3.5x faster than before.</p>

</li>
<li><p>Single arguments in list assign are now slightly faster:</p>

<pre><code>($x) = (...);
(...) = ($x);</code></pre>

</li>
<li><p>Less peak memory is now used when compiling regular expression patterns.</p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5240delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="perl5240delta.html#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2>

<ul>

<li><p><a href="https://perldoc.perl.org/5.35.0/arybase">arybase</a> has been upgraded from version 0.10 to 0.11.</p>

</li>
<li><p><a href="./Attribute::Handlers.html">Attribute::Handlers</a> has been upgraded from version 0.97 to 0.99.</p>

</li>
<li><p><a href="autodie.html">autodie</a> has been upgraded from version 2.26 to 2.29.</p>

</li>
<li><p><a href="autouse.html">autouse</a> has been upgraded from version 1.08 to 1.11.</p>

</li>
<li><p><a href="B.html">B</a> has been upgraded from version 1.58 to 1.62.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded from version 1.35 to 1.37.</p>

</li>
<li><p><a href="base.html">base</a> has been upgraded from version 2.22 to 2.23.</p>

</li>
<li><p><a href="Benchmark.html">Benchmark</a> has been upgraded from version 1.2 to 1.22.</p>

</li>
<li><p><a href="bignum.html">bignum</a> has been upgraded from version 0.39 to 0.42.</p>

</li>
<li><p><a href="bytes.html">bytes</a> has been upgraded from version 1.04 to 1.05.</p>

</li>
<li><p><a href="Carp.html">Carp</a> has been upgraded from version 1.36 to 1.40.</p>

</li>
<li><p><a href="./Compress::Raw::Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.068 to 2.069.</p>

</li>
<li><p><a href="./Compress::Raw::Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.068 to 2.069.</p>

</li>
<li><p><a href="./Config::Perl::V.html">Config::Perl::V</a> has been upgraded from version 0.24 to 0.25.</p>

</li>
<li><p><a href="./CPAN::Meta.html">CPAN::Meta</a> has been upgraded from version 2.150001 to 2.150005.</p>

</li>
<li><p><a href="./CPAN::Meta::Requirements.html">CPAN::Meta::Requirements</a> has been upgraded from version 2.132 to 2.140.</p>

</li>
<li><p><a href="./CPAN::Meta::YAML.html">CPAN::Meta::YAML</a> has been upgraded from version 0.012 to 0.018.</p>

</li>
<li><p><a href="./Data::Dumper.html">Data::Dumper</a> has been upgraded from version 2.158 to 2.160.</p>

</li>
<li><p><a href="./Devel::Peek.html">Devel::Peek</a> has been upgraded from version 1.22 to 1.23.</p>

</li>
<li><p><a href="./Devel::PPPort.html">Devel::PPPort</a> has been upgraded from version 3.31 to 3.32.</p>

</li>
<li><p><a href="Dumpvalue.html">Dumpvalue</a> has been upgraded from version 1.17 to 1.18.</p>

</li>
<li><p><a href="DynaLoader.html">DynaLoader</a> has been upgraded from version 1.32 to 1.38.</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded from version 2.72 to 2.80.</p>

</li>
<li><p><a href="encoding.html">encoding</a> has been upgraded from version 2.14 to 2.17.</p>

</li>
<li><p><a href="./encoding::warnings.html">encoding::warnings</a> has been upgraded from version 0.11 to 0.12.</p>

</li>
<li><p><a href="English.html">English</a> has been upgraded from version 1.09 to 1.10.</p>

</li>
<li><p><a href="Errno.html">Errno</a> has been upgraded from version 1.23 to 1.25.</p>

</li>
<li><p><a href="experimental.html">experimental</a> has been upgraded from version 0.013 to 0.016.</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.280221 to 0.280225.</p>

</li>
<li><p><a href="./ExtUtils::Embed.html">ExtUtils::Embed</a> has been upgraded from version 1.32 to 1.33.</p>

</li>
<li><p><a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 7.04_01 to 7.10_01.</p>

</li>
<li><p><a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 3.28 to 3.31.</p>

</li>
<li><p><a href="./ExtUtils::Typemaps.html">ExtUtils::Typemaps</a> has been upgraded from version 3.28 to 3.31.</p>

</li>
<li><p><a href="feature.html">feature</a> has been upgraded from version 1.40 to 1.42.</p>

</li>
<li><p><a href="fields.html">fields</a> has been upgraded from version 2.17 to 2.23.</p>

</li>
<li><p><a href="./File::Find.html">File::Find</a> has been upgraded from version 1.29 to 1.34.</p>

</li>
<li><p><a href="./File::Glob.html">File::Glob</a> has been upgraded from version 1.24 to 1.26.</p>

</li>
<li><p><a href="./File::Path.html">File::Path</a> has been upgraded from version 2.09 to 2.12_01.</p>

</li>
<li><p><a href="./File::Spec.html">File::Spec</a> has been upgraded from version 3.56 to 3.63.</p>

</li>
<li><p><a href="./Filter::Util::Call.html">Filter::Util::Call</a> has been upgraded from version 1.54 to 1.55.</p>

</li>
<li><p><a href="./Getopt::Long.html">Getopt::Long</a> has been upgraded from version 2.45 to 2.48.</p>

</li>
<li><p><a href="./Hash::Util.html">Hash::Util</a> has been upgraded from version 0.18 to 0.19.</p>

</li>
<li><p><a href="./Hash::Util::FieldHash.html">Hash::Util::FieldHash</a> has been upgraded from version 1.15 to 1.19.</p>

</li>
<li><p><a href="./HTTP::Tiny.html">HTTP::Tiny</a> has been upgraded from version 0.054 to 0.056.</p>

</li>
<li><p><a href="./I18N::Langinfo.html">I18N::Langinfo</a> has been upgraded from version 0.12 to 0.13.</p>

</li>
<li><p><a href="if.html">if</a> has been upgraded from version 0.0604 to 0.0606.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded from version 1.35 to 1.36.</p>

</li>
<li><p>IO-Compress has been upgraded from version 2.068 to 2.069.</p>

</li>
<li><p><a href="./IPC::Open3.html">IPC::Open3</a> has been upgraded from version 1.18 to 1.20.</p>

</li>
<li><p><a href="./IPC::SysV.html">IPC::SysV</a> has been upgraded from version 2.04 to 2.06_01.</p>

</li>
<li><p><a href="./List::Util.html">List::Util</a> has been upgraded from version 1.41 to 1.42_02.</p>

</li>
<li><p><a href="locale.html">locale</a> has been upgraded from version 1.06 to 1.08.</p>

</li>
<li><p><a href="./Locale::Codes.html">Locale::Codes</a> has been upgraded from version 3.34 to 3.37.</p>

</li>
<li><p><a href="./Math::BigInt.html">Math::BigInt</a> has been upgraded from version 1.9997 to 1.999715.</p>

</li>
<li><p><a href="./Math::BigInt::FastCalc.html">Math::BigInt::FastCalc</a> has been upgraded from version 0.31 to 0.40.</p>

</li>
<li><p><a href="./Math::BigRat.html">Math::BigRat</a> has been upgraded from version 0.2608 to 0.260802.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded from version 5.20150520 to 5.20160320.</p>

</li>
<li><p><a href="./Module::Metadata.html">Module::Metadata</a> has been upgraded from version 1.000026 to 1.000031.</p>

</li>
<li><p><a href="mro.html">mro</a> has been upgraded from version 1.17 to 1.18.</p>

</li>
<li><p><a href="ODBM_File.html">ODBM_File</a> has been upgraded from version 1.12 to 1.14.</p>

</li>
<li><p><a href="Opcode.html">Opcode</a> has been upgraded from version 1.32 to 1.34.</p>

</li>
<li><p><a href="parent.html">parent</a> has been upgraded from version 0.232 to 0.234.</p>

</li>
<li><p><a href="./Parse::CPAN::Meta.html">Parse::CPAN::Meta</a> has been upgraded from version 1.4414 to 1.4417.</p>

</li>
<li><p><a href="./Perl::OSType.html">Perl::OSType</a> has been upgraded from version 1.008 to 1.009.</p>

</li>
<li><p><a href="perlfaq.html">perlfaq</a> has been upgraded from version 5.021009 to 5.021010.</p>

</li>
<li><p><a href="./PerlIO::encoding.html">PerlIO::encoding</a> has been upgraded from version 0.21 to 0.24.</p>

</li>
<li><p><a href="./PerlIO::mmap.html">PerlIO::mmap</a> has been upgraded from version 0.014 to 0.016.</p>

</li>
<li><p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> has been upgraded from version 0.22 to 0.24.</p>

</li>
<li><p><a href="./PerlIO::via.html">PerlIO::via</a> has been upgraded from version 0.15 to 0.16.</p>

</li>
<li><p><a href="./Pod::Functions.html">Pod::Functions</a> has been upgraded from version 1.09 to 1.10.</p>

</li>
<li><p><a href="./Pod::Perldoc.html">Pod::Perldoc</a> has been upgraded from version 3.25 to 3.25_02.</p>

</li>
<li><p><a href="./Pod::Simple.html">Pod::Simple</a> has been upgraded from version 3.29 to 3.32.</p>

</li>
<li><p><a href="./Pod::Usage.html">Pod::Usage</a> has been upgraded from version 1.64 to 1.68.</p>

</li>
<li><p><a href="POSIX.html">POSIX</a> has been upgraded from version 1.53 to 1.65.</p>

</li>
<li><p><a href="./Scalar::Util.html">Scalar::Util</a> has been upgraded from version 1.41 to 1.42_02.</p>

</li>
<li><p><a href="SDBM_File.html">SDBM_File</a> has been upgraded from version 1.13 to 1.14.</p>

</li>
<li><p><a href="SelfLoader.html">SelfLoader</a> has been upgraded from version 1.22 to 1.23.</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded from version 2.018 to 2.020_03.</p>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded from version 2.53 to 2.56.</p>

</li>
<li><p><a href="strict.html">strict</a> has been upgraded from version 1.09 to 1.11.</p>

</li>
<li><p><a href="./Term::ANSIColor.html">Term::ANSIColor</a> has been upgraded from version 4.03 to 4.04.</p>

</li>
<li><p><a href="./Term::Cap.html">Term::Cap</a> has been upgraded from version 1.15 to 1.17.</p>

</li>
<li><p><a href="Test.html">Test</a> has been upgraded from version 1.26 to 1.28.</p>

</li>
<li><p><a href="./Test::Harness.html">Test::Harness</a> has been upgraded from version 3.35 to 3.36.</p>

</li>
<li><p><a href="./Thread::Queue.html">Thread::Queue</a> has been upgraded from version 3.05 to 3.08.</p>

</li>
<li><p><a href="threads.html">threads</a> has been upgraded from version 2.01 to 2.06.</p>

</li>
<li><p><a href="./threads::shared.html">threads::shared</a> has been upgraded from version 1.48 to 1.50.</p>

</li>
<li><p><a href="./Tie::File.html">Tie::File</a> has been upgraded from version 1.01 to 1.02.</p>

</li>
<li><p><a href="./Tie::Scalar.html">Tie::Scalar</a> has been upgraded from version 1.03 to 1.04.</p>

</li>
<li><p><a href="./Time::HiRes.html">Time::HiRes</a> has been upgraded from version 1.9726 to 1.9732.</p>

</li>
<li><p><a href="./Time::Piece.html">Time::Piece</a> has been upgraded from version 1.29 to 1.31.</p>

</li>
<li><p><a href="./Unicode::Collate.html">Unicode::Collate</a> has been upgraded from version 1.12 to 1.14.</p>

</li>
<li><p><a href="./Unicode::Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.18 to 1.25.</p>

</li>
<li><p><a href="./Unicode::UCD.html">Unicode::UCD</a> has been upgraded from version 0.61 to 0.64.</p>

</li>
<li><p><a href="UNIVERSAL.html">UNIVERSAL</a> has been upgraded from version 1.12 to 1.13.</p>

</li>
<li><p><a href="utf8.html">utf8</a> has been upgraded from version 1.17 to 1.19.</p>

</li>
<li><p><a href="version.html">version</a> has been upgraded from version 0.9909 to 0.9916.</p>

</li>
<li><p><a href="warnings.html">warnings</a> has been upgraded from version 1.32 to 1.36.</p>

</li>
<li><p><a href="Win32.html">Win32</a> has been upgraded from version 0.51 to 0.52.</p>

</li>
<li><p><a href="./Win32API::File.html">Win32API::File</a> has been upgraded from version 0.1202 to 0.1203.</p>

</li>
<li><p><a href="./XS::Typemap.html">XS::Typemap</a> has been upgraded from version 0.13 to 0.14.</p>

</li>
<li><p><a href="XSLoader.html">XSLoader</a> has been upgraded from version 0.20 to 0.21.</p>

</li>
</ul>

<h1 id="Documentation"><a class="permalink" href="perl5240delta.html#Documentation">#</a>Documentation</h1>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5240delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes"></a>Changes to Existing Documentation</h2>

<h3 id="perlapi"><a class="permalink" href="perl5240delta.html#perlapi">#</a><a href="perlapi.html">perlapi</a></h3>

<ul>

<li><p>The process of using undocumented globals has been documented, namely, that one should send email to <a href="mailto:perl5-porters@perl.org">perl5-porters@perl.org</a> first to get the go-ahead for documenting and using an undocumented function or global variable.</p>

</li>
</ul>

<h3 id="perlcall"><a class="permalink" href="perl5240delta.html#perlcall">#</a><a href="perlcall.html">perlcall</a></h3>

<ul>

<li><p>A number of cleanups have been made to perlcall, including:</p>

<ul>

<li><p>use <code>EXTEND(SP, n)</code> and <code>PUSHs()</code> instead of <code>XPUSHs()</code> where applicable and update prose to match</p>

</li>
<li><p>add POPu, POPul and POPpbytex to the &quot;complete list of POP macros&quot; and clarify the documentation for some of the existing entries, and a note about side-effects</p>

</li>
<li><p>add API documentation for POPu and POPul</p>

</li>
<li><p>use ERRSV more efficiently</p>

</li>
<li><p>approaches to thread-safety storage of SVs.</p>

</li>
</ul>

</li>
</ul>

<h3 id="perlfunc"><a class="permalink" href="perl5240delta.html#perlfunc">#</a><a href="perlfunc.html">perlfunc</a></h3>

<ul>

<li><p>The documentation of <code>hex</code> has been revised to clarify valid inputs.</p>

</li>
<li><p>Better explain meaning of negative PIDs in <code>waitpid</code>. <a href="https://github.com/Perl/perl5/issues/15108">[GH #15108]</a></p>

</li>
<li><p>General cleanup: there&#39;s more consistency now (in POD usage, grammar, code examples), better practices in code examples (use of <code>my</code>, removal of bareword filehandles, dropped usage of <code>&amp;</code> when calling subroutines, ...), etc.</p>

</li>
</ul>

<h3 id="perlguts"><a class="permalink" href="perl5240delta.html#perlguts">#</a><a href="perlguts.html">perlguts</a></h3>

<ul>

<li><p>A new section has been added, <a href="perlguts.html#Dynamic-Scope-and-the-Context-Stack">&quot;Dynamic Scope and the Context Stack&quot; in perlguts</a>, which explains how the perl context stack works.</p>

</li>
</ul>

<h3 id="perllocale"><a class="permalink" href="perl5240delta.html#perllocale">#</a><a href="perllocale.html">perllocale</a></h3>

<ul>

<li><p>A stronger caution about using locales in threaded applications is given. Locales are not thread-safe, and you can get wrong results or even segfaults if you use them there.</p>

</li>
</ul>

<h3 id="perlmodlib"><a class="permalink" href="perl5240delta.html#perlmodlib">#</a><a href="perlmodlib.html">perlmodlib</a></h3>

<ul>

<li><p>We now recommend contacting the module-authors list or PAUSE in seeking guidance on the naming of modules.</p>

</li>
</ul>

<h3 id="perlop"><a class="permalink" href="perl5240delta.html#perlop">#</a><a href="perlop.html">perlop</a></h3>

<ul>

<li><p>The documentation of <code>qx//</code> now describes how <code>$?</code> is affected.</p>

</li>
</ul>

<h3 id="perlpolicy"><a class="permalink" href="perl5240delta.html#perlpolicy">#</a><a href="perlpolicy.html">perlpolicy</a></h3>

<ul>

<li><p>This note has been added to perlpolicy:</p>

<pre><code class="plaintext">While civility is required, kindness is encouraged; if you have any
doubt about whether you are being civil, simply ask yourself, &quot;Am I
being kind?&quot; and aspire to that.</code></pre>

</li>
</ul>

<h3 id="perlreftut"><a class="permalink" href="perl5240delta.html#perlreftut">#</a><a href="perlreftut.html">perlreftut</a></h3>

<ul>

<li><p>Fix some examples to be <a href="strict.html">strict</a> clean.</p>

</li>
</ul>

<h3 id="perlrebackslash"><a class="permalink" href="perl5240delta.html#perlrebackslash">#</a><a href="perlrebackslash.html">perlrebackslash</a></h3>

<ul>

<li><p>Clarify that in languages like Japanese and Thai, dictionary lookup is required to determine word boundaries.</p>

</li>
</ul>

<h3 id="perlsub"><a class="permalink" href="perl5240delta.html#perlsub">#</a><a href="perlsub.html">perlsub</a></h3>

<ul>

<li><p>Updated to note that anonymous subroutines can have signatures.</p>

</li>
</ul>

<h3 id="perlsyn"><a class="permalink" href="perl5240delta.html#perlsyn">#</a><a href="perlsyn.html">perlsyn</a></h3>

<ul>

<li><p>Fixed a broken example where <code>=</code> was used instead of <code>==</code> in conditional in do/while example.</p>

</li>
</ul>

<h3 id="perltie"><a class="permalink" href="perl5240delta.html#perltie">#</a><a href="perltie.html">perltie</a></h3>

<ul>

<li><p>The usage of <code>FIRSTKEY</code> and <code>NEXTKEY</code> has been clarified.</p>

</li>
</ul>

<h3 id="perlunicode"><a class="permalink" href="perl5240delta.html#perlunicode">#</a><a href="perlunicode.html">perlunicode</a></h3>

<ul>

<li><p>Discourage use of &#39;In&#39; as a prefix signifying the Unicode Block property.</p>

</li>
</ul>

<h3 id="perlvar"><a class="permalink" href="perl5240delta.html#perlvar">#</a><a href="perlvar.html">perlvar</a></h3>

<ul>

<li><p>The documentation of <code>$@</code> was reworded to clarify that it is not just for syntax errors in <code>eval</code>. <a href="https://github.com/Perl/perl5/issues/14572">[GH #14572]</a></p>

</li>
<li><p>The specific true value of <code>$!{E...}</code> is now documented, noting that it is subject to change and not guaranteed.</p>

</li>
<li><p>Use of <code>$OLD_PERL_VERSION</code> is now discouraged.</p>

</li>
</ul>

<h3 id="perlxs"><a class="permalink" href="perl5240delta.html#perlxs">#</a><a href="perlxs.html">perlxs</a></h3>

<ul>

<li><p>The documentation of <code>PROTOTYPES</code> has been corrected; they are <i>disabled</i> by default, not <i>enabled</i>.</p>

</li>
</ul>

<h1 id="Diagnostics"><a class="permalink" href="perl5240delta.html#Diagnostics">#</a>Diagnostics</h1>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5240delta.html#New-Diagnostics">#</a><a id="New1"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5240delta.html#New-Errors">#</a><a id="New2"></a>New Errors</h3>

<ul>

<li><p><a href="perldiag.html#%25s-must-not-be-a-named-sequence-in-transliteration-operator">%s must not be a named sequence in transliteration operator</a></p>

</li>
<li><p><a href="perldiag.html#Can%27t-find-Unicode-property-definition-%22%25s%22-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Can&#39;t find Unicode property definition &quot;%s&quot; in regex;</a></p>

</li>
<li><p><a href="perldiag.html#Can%27t-redeclare-%22%25s%22-in-%22%25s%22">Can&#39;t redeclare &quot;%s&quot; in &quot;%s&quot;</a></p>

</li>
<li><p><a href="perldiag.html#Character-following-%5C%25c-must-be-%27%7B%27-or-a-single-character-Unicode-property-name-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Character following \p must be &#39;{&#39; or a single-character Unicode property name in regex;</a></p>

</li>
<li><p><a href="perldiag.html#Empty-%5C%25c-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Empty \%c in regex; marked by &lt;-- HERE in m/%s/ </a></p>

</li>
<li><p><a href="perldiag.html#Illegal-user-defined-property-name">Illegal user-defined property name</a></p>

</li>
<li><p><a href="perldiag.html#Invalid-number-%27%25s%27-for-C-option.">Invalid number &#39;%s&#39; for -C option.</a></p>

</li>
<li><p><a href="perldiag.html#Sequence-%28%3F...-not-terminated-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Sequence (?... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</a></p>

</li>
<li><p><a href="perldiag.html#Sequence-%28%3FP%3C...-not-terminated-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Sequence (?P&lt;... not terminated in regex; marked by &lt;-- HERE in m/%s/ </a></p>

</li>
<li><p><a href="perldiag.html#Sequence-%28%3FP%3E...-not-terminated-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Sequence (?P&gt;... not terminated in regex; marked by &lt;-- HERE in m/%s/ </a></p>

</li>
</ul>

<h3 id="New-Warnings"><a class="permalink" href="perl5240delta.html#New-Warnings">#</a><a id="New3"></a>New Warnings</h3>

<ul>

<li><p><a href="https://perldoc.perl.org/5.35.0/&#32;perldiag#Assuming-NOT-a-POSIX-class-since-%25s-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Assuming NOT a POSIX class since %s in regex; marked by &lt;-- HERE in m/%s/</a></p>

</li>
<li><p><a href="perldiag.html#%25s%28%29-is-deprecated-on-%3Autf8-handles">%s() is deprecated on :utf8 handles</a></p>

</li>
</ul>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5240delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes1"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p>Accessing the <code>IO</code> part of a glob as <code>FILEHANDLE</code> instead of <code>IO</code> is no longer deprecated. It is discouraged to encourage uniformity (so that, for example, one can grep more easily) but it will not be removed. <a href="https://github.com/Perl/perl5/issues/15105">[GH #15105]</a></p>

</li>
<li><p>The diagnostic <code>Hexadecimal float: internal error</code> has been changed to <code>Hexadecimal float: internal error (%s)</code> to include more information.</p>

</li>
<li><p><a href="perldiag.html#Can%27t-modify-non-lvalue-subroutine-call-of-%26%25s">Can&#39;t modify non-lvalue subroutine call of &amp;%s</a></p>

<p>This error now reports the name of the non-lvalue subroutine you attempted to use as an lvalue.</p>

</li>
<li><p>When running out of memory during an attempt the increase the stack size, previously, perl would die using the cryptic message <code>panic: av_extend_guts() negative count (-9223372036854775681)</code>. This has been fixed to show the prettier message: <a href="perldiag.html#Out-of-memory-during-%25s-extend">Out of memory during stack extend</a></p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5240delta.html#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1>

<ul>

<li><p><code>Configure</code> now acts as if the <code>-O</code> option is always passed, allowing command line options to override saved configuration. This should eliminate confusion when command line options are ignored for no obvious reason. <code>-O</code> is now permitted, but ignored.</p>

</li>
<li><p>Bison 3.0 is now supported.</p>

</li>
<li><p><i>Configure</i> no longer probes for <i>libnm</i> by default. Originally this was the &quot;New Math&quot; library, but the name has been re-used by the GNOME NetworkManager. <a href="https://github.com/Perl/perl5/issues/15115">[GH #15115]</a></p>

</li>
<li><p>Added <i>Configure</i> probes for <code>newlocale</code>, <code>freelocale</code>, and <code>uselocale</code>.</p>

</li>
<li><p><code>PPPort.so/PPPort.dll</code> no longer get installed, as they are not used by <code>PPPort.pm</code>, only by its test files.</p>

</li>
<li><p>It is now possible to specify which compilation date to show on <code>perl -V</code> output, by setting the macro <code>PERL_BUILD_DATE</code>.</p>

</li>
<li><p>Using the <code>NO_HASH_SEED</code> define in combination with the default hash algorithm <code>PERL_HASH_FUNC_ONE_AT_A_TIME_HARD</code> resulted in a fatal error while compiling the interpreter, since Perl 5.17.10. This has been fixed.</p>

</li>
<li><p><i>Configure</i> should handle spaces in paths a little better.</p>

</li>
<li><p>No longer generate EBCDIC POSIX-BC tables. We don&#39;t believe anyone is using Perl and POSIX-BC at this time, and by not generating these tables it saves time during development, and makes the resulting tar ball smaller.</p>

</li>
<li><p>The GNU Make makefile for Win32 now supports parallel builds. [perl #126632]</p>

</li>
<li><p>You can now build perl with MSVC++ on Win32 using GNU Make. [perl #126632]</p>

</li>
<li><p>The Win32 miniperl now has a real <code>getcwd</code> which increases build performance resulting in <code>getcwd()</code> being 605x faster in Win32 miniperl.</p>

</li>
<li><p>Configure now takes <code>-Dusequadmath</code> into account when calculating the <code>alignbytes</code> configuration variable. Previously the mis-calculated <code>alignbytes</code> could cause alignment errors on debugging builds. [perl #127894]</p>

</li>
</ul>

<h1 id="Testing"><a class="permalink" href="perl5240delta.html#Testing">#</a>Testing</h1>

<ul>

<li><p>A new test (<i>t/op/aassign.t</i>) has been added to test the list assignment operator <code>OP_AASSIGN</code>.</p>

</li>
<li><p>Parallel building has been added to the dmake <code>makefile.mk</code> makefile. All Win32 compilers are supported.</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5240delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5240delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<dl>

<dt id="AmigaOS"><a class="permalink" href="perl5240delta.html#AmigaOS">#</a>AmigaOS</dt>
<dd>

<ul>

<li><p>The AmigaOS port has been reintegrated into the main tree, based off of Perl 5.22.1.</p>

</li>
</ul>

</dd>
<dt id="Cygwin"><a class="permalink" href="perl5240delta.html#Cygwin">#</a>Cygwin</dt>
<dd>

<ul>

<li><p>Tests are more robust against unusual cygdrive prefixes. <a href="https://github.com/Perl/perl5/issues/15076">[GH #15076]</a></p>

</li>
</ul>

</dd>
<dt id="EBCDIC"><a class="permalink" href="perl5240delta.html#EBCDIC">#</a>EBCDIC</dt>
<dd>

<dl>

<dt id="UTF-EBCDIC-extended"><a class="permalink" href="perl5240delta.html#UTF-EBCDIC-extended">#</a><a id="UTF"></a>UTF-EBCDIC extended</dt>
<dd>

<p>UTF-EBCDIC is like UTF-8, but for EBCDIC platforms. It now has been extended so that it can represent code points up to 2 ** 64 - 1 on platforms with 64-bit words. This brings it into parity with UTF-8. This enhancement requires an incompatible change to the representation of code points in the range 2 ** 30 to 2 ** 31 -1 (the latter was the previous maximum representable code point). This means that a file that contains one of these code points, written out with previous versions of perl cannot be read in, without conversion, by a perl containing this change. We do not believe any such files are in existence, but if you do have one, submit a ticket at <a href="mailto:perlbug@perl.org">perlbug@perl.org</a>, and we will write a conversion script for you.</p>

</dd>
<dt id="EBCDIC-cmp()-and-sort()-fixed-for-UTF-EBCDIC-strings"><a class="permalink" href="perl5240delta.html#EBCDIC-cmp()-and-sort()-fixed-for-UTF-EBCDIC-strings">#</a><a id="EBCDIC1"></a><a id="EBCDIC-cmp-and-sort-fixed-for-UTF-EBCDIC-strings"></a>EBCDIC <code>cmp()</code> and <code>sort()</code> fixed for UTF-EBCDIC strings</dt>
<dd>

<p>Comparing two strings that were both encoded in UTF-8 (or more precisely, UTF-EBCDIC) did not work properly until now. Since <code>sort()</code> uses <code>cmp()</code>, this fixes that as well.</p>

</dd>
<dt id="EBCDIC-tr///-and-y///-fixed-for-\N{},-and-use-utf8-ranges"><a class="permalink" href="perl5240delta.html#EBCDIC-tr///-and-y///-fixed-for-%5CN%7B%7D,-and-use-utf8-ranges">#</a><a id="EBCDIC2"></a><a id="EBCDIC-tr-and-y-fixed-for-N-and-use-utf8-ranges"></a>EBCDIC <code>tr///</code> and <code>y///</code> fixed for <code>\N{}</code>, and <code><span style="white-space: nowrap;">use utf8</span></code> ranges</dt>
<dd>

<p>Perl v5.22 introduced the concept of portable ranges to regular expression patterns. A portable range matches the same set of characters no matter what platform is being run on. This concept is now extended to <code>tr///</code>. See <code><a href="perlop.html#tr%2FSEARCHLIST%2FREPLACEMENTLIST%2Fcdsr">tr///</a></code>.</p>

<p>There were also some problems with these operations under <span style="white-space: nowrap;"><code>use utf8</code></span>, which are now fixed</p>

</dd>
</dl>

</dd>
<dt id="FreeBSD"><a class="permalink" href="perl5240delta.html#FreeBSD">#</a>FreeBSD</dt>
<dd>

<ul>

<li><p>Use the <code>fdclose()</code> function from FreeBSD if it is available. <a href="https://github.com/Perl/perl5/issues/15082">[GH #15082]</a></p>

</li>
</ul>

</dd>
<dt id="IRIX"><a class="permalink" href="perl5240delta.html#IRIX">#</a>IRIX</dt>
<dd>

<ul>

<li><p>Under some circumstances IRIX stdio <code>fgetc()</code> and <code>fread()</code> set the errno to <code>ENOENT</code>, which made no sense according to either IRIX or POSIX docs. Errno is now cleared in such cases. <a href="https://github.com/Perl/perl5/issues/14557">[GH #14557]</a></p>

</li>
<li><p>Problems when multiplying long doubles by infinity have been fixed. <a href="https://github.com/Perl/perl5/issues/14993">[GH #14993]</a></p>

</li>
</ul>

</dd>
<dt id="MacOS-X"><a class="permalink" href="perl5240delta.html#MacOS-X">#</a><a id="MacOS"></a>MacOS X</dt>
<dd>

<ul>

<li><p>Until now OS X builds of perl have specified a link target of 10.3 (Panther, 2003) but have not specified a compiler target. From now on, builds of perl on OS X 10.6 or later (Snow Leopard, 2008) by default capture the current OS X version and specify that as the explicit build target in both compiler and linker flags, thus preserving binary compatibility for extensions built later regardless of changes in OS X, SDK, or compiler and linker versions. To override the default value used in the build and preserved in the flags, specify <code>export MACOSX_DEPLOYMENT_TARGET=10.N</code> before configuring and building perl, where 10.N is the version of OS X you wish to target. In OS X 10.5 or earlier there is no change to the behavior present when those systems were current; the link target is still OS X 10.3 and there is no explicit compiler target.</p>

</li>
<li><p>Builds with both -DDEBUGGING and threading enabled would fail with a &quot;panic: free from wrong pool&quot; error when built or tested from Terminal on OS X. This was caused by perl&#39;s internal management of the environment conflicting with an atfork handler using the libc <code>setenv()</code> function to update the environment.</p>

<p>Perl now uses <code>setenv()</code>/<code>unsetenv()</code> to update the environment on OS X. <a href="https://github.com/Perl/perl5/issues/14955">[GH #14955]</a></p>

</li>
</ul>

</dd>
<dt id="Solaris"><a class="permalink" href="perl5240delta.html#Solaris">#</a>Solaris</dt>
<dd>

<ul>

<li><p>All Solaris variants now build a shared libperl</p>

<p>Solaris and variants like OpenIndiana now always build with the shared Perl library (Configure -Duseshrplib). This was required for the OpenIndiana builds, but this has also been the setting for Oracle/Sun Perl builds for several years.</p>

</li>
</ul>

</dd>
<dt id="Tru64"><a class="permalink" href="perl5240delta.html#Tru64">#</a>Tru64</dt>
<dd>

<ul>

<li><p>Workaround where Tru64 balks when prototypes are listed as <code>PERL_STATIC_INLINE</code>, but where the test is build with <code>-DPERL_NO_INLINE_FUNCTIONS</code>.</p>

</li>
</ul>

</dd>
<dt id="VMS"><a class="permalink" href="perl5240delta.html#VMS">#</a>VMS</dt>
<dd>

<ul>

<li><p>On VMS, the math function prototypes in <code>math.h</code> are now visible under C++. Now building the POSIX extension with C++ will no longer crash.</p>

</li>
<li><p>VMS has had <code>setenv</code>/<code>unsetenv</code> since v7.0 (released in 1996), <code>Perl_vmssetenv</code> now always uses <code>setenv</code>/<code>unsetenv</code>.</p>

</li>
<li><p>Perl now implements its own <code>killpg</code> by scanning for processes in the specified process group, which may not mean exactly the same thing as a Unix process group, but allows us to send a signal to a parent (or master) process and all of its sub-processes. At the perl level, this means we can now send a negative pid like so:</p>

<pre><code>kill SIGKILL, -$pid;</code></pre>

<p>to signal all processes in the same group as <code>$pid</code>.</p>

</li>
<li><p>For those <code>%ENV</code> elements based on the CRTL environ array, we&#39;ve always preserved case when setting them but did look-ups only after upcasing the key first, which made lower- or mixed-case entries go missing. This problem has been corrected by making <code>%ENV</code> elements derived from the environ array case-sensitive on look-up as well as case-preserving on store.</p>

</li>
<li><p>Environment look-ups for <code>PERL5LIB</code> and <code>PERLLIB</code> previously only considered logical names, but now consider all sources of <code>%ENV</code> as determined by <code>PERL_ENV_TABLES</code> and as documented in <a href="perlvms.html#%25ENV">&quot;%ENV&quot; in perlvms</a>.</p>

</li>
<li><p>The minimum supported version of VMS is now v7.3-2, released in 2003. As a side effect of this change, VAX is no longer supported as the terminal release of OpenVMS VAX was v7.3 in 2001.</p>

</li>
</ul>

</dd>
<dt id="Win32"><a class="permalink" href="perl5240delta.html#Win32">#</a>Win32</dt>
<dd>

<ul>

<li><p>A new build option <code>USE_NO_REGISTRY</code> has been added to the makefiles. This option is off by default, meaning the default is to do Windows registry lookups. This option stops Perl from looking inside the registry for anything. For what values are looked up in the registry see <a href="perlwin32.html">perlwin32</a>. Internally, in C, the name of this option is <code>WIN32_NO_REGISTRY</code>.</p>

</li>
<li><p>The behavior of Perl using <code>HKEY_CURRENT_USER\Software\Perl</code> and <code>HKEY_LOCAL_MACHINE\Software\Perl</code> to lookup certain values, including <code>%ENV</code> vars starting with <code>PERL</code> has changed. Previously, the 2 keys were checked for entries at all times through the perl process&#39;s life time even if they did not exist. For performance reasons, now, if the root key (i.e. <code>HKEY_CURRENT_USER\Software\Perl</code> or <code>HKEY_LOCAL_MACHINE\Software\Perl</code>) does not exist at process start time, it will not be checked again for <code>%ENV</code> override entries for the remainder of the perl process&#39;s life. This more closely matches Unix behavior in that the environment is copied or inherited on startup and changing the variable in the parent process or another process or editing <i>.bashrc</i> will not change the environmental variable in other existing, running, processes.</p>

</li>
<li><p>One glob fetch was removed for each <code>-X</code> or <code>stat</code> call whether done from Perl code or internally from Perl&#39;s C code. The glob being looked up was <code>${^WIN32_SLOPPY_STAT}</code> which is a special variable. This makes <code>-X</code> and <code>stat</code> slightly faster.</p>

</li>
<li><p>During miniperl&#39;s process startup, during the build process, 4 to 8 IO calls related to the process starting <i>.pl</i> and the <i>buildcustomize.pl</i> file were removed from the code opening and executing the first 1 or 2 <i>.pl</i> files.</p>

</li>
<li><p>Builds using Microsoft Visual C++ 2003 and earlier no longer produce an &quot;INTERNAL COMPILER ERROR&quot; message. [perl #126045]</p>

</li>
<li><p>Visual C++ 2013 builds will now execute on XP and higher. Previously they would only execute on Vista and higher.</p>

</li>
<li><p>You can now build perl with GNU Make and GCC. [perl #123440]</p>

</li>
<li><p><code>truncate($filename, $size)</code> now works for files over 4GB in size. [perl #125347]</p>

</li>
<li><p>Parallel building has been added to the dmake <code>makefile.mk</code> makefile. All Win32 compilers are supported.</p>

</li>
<li><p>Building a 64-bit perl with a 64-bit GCC but a 32-bit gmake would result in an invalid <code>$Config{archname}</code> for the resulting perl. [perl #127584]</p>

</li>
<li><p>Errors set by Winsock functions are now put directly into <code>$^E</code>, and the relevant <code>WSAE*</code> error codes are now exported from the <a href="Errno.html">Errno</a> and <a href="POSIX.html">POSIX</a> modules for testing this against.</p>

<p>The previous behavior of putting the errors (converted to POSIX-style <code>E*</code> error codes since Perl 5.20.0) into <code>$!</code> was buggy due to the non-equivalence of like-named Winsock and POSIX error constants, a relationship between which has unfortunately been established in one way or another since Perl 5.8.0.</p>

<p>The new behavior provides a much more robust solution for checking Winsock errors in portable software without accidentally matching POSIX tests that were intended for other OSes and may have different meanings for Winsock.</p>

<p>The old behavior is currently retained, warts and all, for backwards compatibility, but users are encouraged to change any code that tests <code>$!</code> against <code>E*</code> constants for Winsock errors to instead test <code>$^E</code> against <code>WSAE*</code> constants. After a suitable deprecation period, the old behavior may be removed, leaving <code>$!</code> unchanged after Winsock function calls, to avoid any possible confusion over which error variable to check.</p>

</li>
</ul>

</dd>
<dt id="ppc64el"><a class="permalink" href="perl5240delta.html#ppc64el">#</a>ppc64el</dt>
<dd>

<dl>

<dt id="floating-point"><a class="permalink" href="perl5240delta.html#floating-point">#</a><a id="floating"></a>floating point</dt>
<dd>

<p>The floating point format of ppc64el (Debian naming for little-endian PowerPC) is now detected correctly.</p>

</dd>
</dl>

</dd>
</dl>

<h1 id="Internal-Changes"><a class="permalink" href="perl5240delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<ul>

<li><p>The implementation of perl&#39;s context stack system, and its internal API, have been heavily reworked. Note that no significant changes have been made to any external APIs, but XS code which relies on such internal details may need to be fixed. The main changes are:</p>

<ul>

<li><p>The <code>PUSHBLOCK()</code>, <code>POPSUB()</code> etc. macros have been replaced with static inline functions such as <code>cx_pushblock()</code>, <code>cx_popsub()</code> etc. These use function args rather than implicitly relying on local vars such as <code>gimme</code> and <code>newsp</code> being available. Also their functionality has changed: in particular, <code>cx_popblock()</code> no longer decrements <code>cxstack_ix</code>. The ordering of the steps in the <code>pp_leave*</code> functions involving <code>cx_popblock()</code>, <code>cx_popsub()</code> etc. has changed. See the new documentation, <a href="perlguts.html#Dynamic-Scope-and-the-Context-Stack">&quot;Dynamic Scope and the Context Stack&quot; in perlguts</a>, for details on how to use them.</p>

</li>
<li><p>Various macros, which now consistently have a CX_ prefix, have been added:</p>

<pre><code class="plaintext">CX_CUR(), CX_LEAVE_SCOPE(), CX_POP()</code></pre>

<p>or renamed:</p>

<pre><code class="plaintext">CX_POP_SAVEARRAY(), CX_DEBUG(), CX_PUSHSUBST(), CX_POPSUBST()</code></pre>

</li>
<li><p><code>cx_pushblock()</code> now saves <code>PL_savestack_ix</code> and <code>PL_tmps_floor</code>, so <code>pp_enter*</code> and <code>pp_leave*</code> no longer do</p>

<pre><code class="plaintext">ENTER; SAVETMPS; ....; LEAVE</code></pre>

</li>
<li><p><code>cx_popblock()</code> now also restores <code>PL_curpm</code>.</p>

</li>
<li><p>In <code>dounwind()</code> for every context type, the current savestack frame is now processed before each context is popped; formerly this was only done for sub-like context frames. This action has been removed from <code>cx_popsub()</code> and placed into its own macro, <code>CX_LEAVE_SCOPE(cx)</code>, which must be called before <code>cx_popsub()</code> etc.</p>

<p><code>dounwind()</code> now also does a <code>cx_popblock()</code> on the last popped frame (formerly it only did the <code>cx_popsub()</code> etc. actions on each frame).</p>

</li>
<li><p>The temps stack is now freed on scope exit; previously, temps created during the last statement of a block wouldn&#39;t be freed until the next <code>nextstate</code> following the block (apart from an existing hack that did this for recursive subs in scalar context); and in something like <code>f(g())</code>, the temps created by the last statement in <code>g()</code> would formerly not be freed until the statement following the return from <code>f()</code>.</p>

</li>
<li><p>Most values that were saved on the savestack on scope entry are now saved in suitable new fields in the context struct, and saved and restored directly by <code>cx_pushfoo()</code> and <code>cx_popfoo()</code>, which is much faster.</p>

</li>
<li><p>Various context struct fields have been added, removed or modified.</p>

</li>
<li><p>The handling of <code>@_</code> in <code>cx_pushsub()</code> and <code>cx_popsub()</code> has been considerably tidied up, including removing the <code>argarray</code> field from the context struct, and extracting out some common (but rarely used) code into a separate function, <code>clear_defarray()</code>. Also, useful subsets of <code>cx_popsub()</code> which had been unrolled in places like <code>pp_goto</code> have been gathered into the new functions <code>cx_popsub_args()</code> and <code>cx_popsub_common()</code>.</p>

</li>
<li><p><code>pp_leavesub</code> and <code>pp_leavesublv</code> now use the same function as the rest of the <code>pp_leave*</code>&#39;s to process return args.</p>

</li>
<li><p><code>CXp_FOR_PAD</code> and <code>CXp_FOR_GV</code> flags have been added, and <code>CXt_LOOP_FOR</code> has been split into <code>CXt_LOOP_LIST</code>, <code>CXt_LOOP_ARY</code>.</p>

</li>
<li><p>Some variables formerly declared by <code>dMULTICALL</code> (but not documented) have been removed.</p>

</li>
</ul>

</li>
<li><p>The obscure <code>PL_timesbuf</code> variable, effectively a vestige of Perl 1, has been removed. It was documented as deprecated in Perl 5.20, with a statement that it would be removed early in the 5.21.x series; that has now finally happened. <a href="https://github.com/Perl/perl5/issues/13632">[GH #13632]</a></p>

</li>
<li><p>An unwarranted assertion in <code>Perl_newATTRSUB_x()</code> has been removed. If a stub subroutine definition with a prototype has been seen, then any subsequent stub (or definition) of the same subroutine with an attribute was causing an assertion failure because of a null pointer. <a href="https://github.com/Perl/perl5/issues/15081">[GH #15081]</a></p>

</li>
<li><p><code>::</code> has been replaced by <code>__</code> in <code>ExtUtils::ParseXS</code>, like it&#39;s done for parameters/return values. This is more consistent, and simplifies writing XS code wrapping C++ classes into a nested Perl namespace (it requires only a typedef for <code>Foo__Bar</code> rather than two, one for <code>Foo_Bar</code> and the other for <code>Foo::Bar</code>).</p>

</li>
<li><p>The <code>to_utf8_case()</code> function is now deprecated. Instead use <code>toUPPER_utf8</code>, <code>toTITLE_utf8</code>, <code>toLOWER_utf8</code>, and <code>toFOLD_utf8</code>. (See <a href="http://nntp.perl.org/group/perl.perl5.porters/233287">http://nntp.perl.org/group/perl.perl5.porters/233287</a>.)</p>

</li>
<li><p>Perl core code and the threads extension have been annotated so that, if Perl is configured to use threads, then during compile-time clang (3.6 or later) will warn about suspicious uses of mutexes. See <a href="http://clang.llvm.org/docs/ThreadSafetyAnalysis.html">http://clang.llvm.org/docs/ThreadSafetyAnalysis.html</a> for more information.</p>

</li>
<li><p>The <code>signbit()</code> emulation has been enhanced. This will help older and/or more exotic platforms or configurations.</p>

</li>
<li><p>Most EBCDIC-specific code in the core has been unified with non-EBCDIC code, to avoid repetition and make maintenance easier.</p>

</li>
<li><p>MSWin32 code for <code>$^X</code> has been moved out of the <i>win32</i> directory to <i>caretx.c</i>, where other operating systems set that variable.</p>

</li>
<li><p><code>sv_ref()</code> is now part of the API.</p>

</li>
<li><p><a href="perlapi.html#sv_backoff">&quot;sv_backoff&quot; in perlapi</a> had its return type changed from <code>int</code> to <code>void</code>. It previously has always returned <code>0</code> since Perl 5.000 stable but that was undocumented. Although <code>sv_backoff</code> is marked as public API, XS code is not expected to be impacted since the proper API call would be through public API <code>sv_setsv(sv, &amp;PL_sv_undef)</code>, or quasi-public <code>SvOOK_off</code>, or non-public <code>SvOK_off</code> calls, and the return value of <code>sv_backoff</code> was previously a meaningless constant that can be rewritten as <code>(sv_backoff(sv),0)</code>.</p>

</li>
<li><p>The <code>EXTEND</code> and <code>MEXTEND</code> macros have been improved to avoid various issues with integer truncation and wrapping. In particular, some casts formerly used within the macros have been removed. This means for example that passing an unsigned <code>nitems</code> argument is likely to raise a compiler warning now (it&#39;s always been documented to require a signed value; formerly int, lately SSize_t).</p>

</li>
<li><p><code>PL_sawalias</code> and <code>GPf_ALIASED_SV</code> have been removed.</p>

</li>
<li><p><code>GvASSIGN_GENERATION</code> and <code>GvASSIGN_GENERATION_set</code> have been removed.</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5240delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<ul>

<li><p>It now works properly to specify a user-defined property, such as</p>

<pre><code class="plaintext">qr/\p{mypkg1::IsMyProperty}/i</code></pre>

<p>with <code>/i</code> caseless matching, an explicit package name, and <i>IsMyProperty</i> not defined at the time of the pattern compilation.</p>

</li>
<li><p>Perl&#39;s <code>memcpy()</code>, <code>memmove()</code>, <code>memset()</code> and <code>memcmp()</code> fallbacks are now more compatible with the originals. [perl #127619]</p>

</li>
<li><p>Fixed the issue where a <code>s///r</code>) with <b>-DPERL_NO_COW</b> attempts to modify the source SV, resulting in the program dying. [perl #127635]</p>

</li>
<li><p>Fixed an EBCDIC-platform-only case where a pattern could fail to match. This occurred when matching characters from the set of C1 controls when the target matched string was in UTF-8.</p>

</li>
<li><p>Narrow the filename check in <i>strict.pm</i> and <i>warnings.pm</i>. Previously, it assumed that if the filename (without the <i>.pmc?</i> extension) differed from the package name, if was a misspelled use statement (i.e. <code>use Strict</code> instead of <code>use strict</code>). We now check whether there&#39;s really a miscapitalization happening, and not some other issue.</p>

</li>
<li><p>Turn an assertion into a more user friendly failure when parsing regexes. [perl #127599]</p>

</li>
<li><p>Correctly raise an error when trying to compile patterns with unterminated character classes while there are trailing backslashes. [perl #126141].</p>

</li>
<li><p>Line numbers larger than 2**31-1 but less than 2**32 are no longer returned by <code>caller()</code> as negative numbers. [perl #126991]</p>

</li>
<li><p><code>unless ( <i>assignment</i> )</code> now properly warns when syntax warnings are enabled. [perl #127122]</p>

</li>
<li><p>Setting an <code>ISA</code> glob to an array reference now properly adds <code>isaelem</code> magic to any existing elements. Previously modifying such an element would not update the ISA cache, so method calls would call the wrong function. Perl would also crash if the <code>ISA</code> glob was destroyed, since new code added in 5.23.7 would try to release the <code>isaelem</code> magic from the elements. [perl #127351]</p>

</li>
<li><p>If a here-doc was found while parsing another operator, the parser had already read end of file, and the here-doc was not terminated, perl could produce an assertion or a segmentation fault. This now reliably complains about the unterminated here-doc. [perl #125540]</p>

</li>
<li><p><code>untie()</code> would sometimes return the last value returned by the <code>UNTIE()</code> handler as well as its normal value, messing up the stack. [perl #126621]</p>

</li>
<li><p>Fixed an operator precedence problem when <code> castflags &amp; 2</code> is true. [perl #127474]</p>

</li>
<li><p>Caching of DESTROY methods could result in a non-pointer or a non-STASH stored in the <code>SvSTASH()</code> slot of a stash, breaking the B <code>STASH()</code> method. The DESTROY method is now cached in the MRO metadata for the stash. [perl #126410]</p>

</li>
<li><p>The AUTOLOAD method is now called when searching for a DESTROY method, and correctly sets <code>$AUTOLOAD</code> too. [perl #124387] [perl #127494]</p>

</li>
<li><p>Avoid parsing beyond the end of the buffer when processing a <code>#line</code> directive with no filename. [perl #127334]</p>

</li>
<li><p>Perl now raises a warning when a regular expression pattern looks like it was supposed to contain a POSIX class, like <code>qr/[[:alpha:]]/</code>, but there was some slight defect in its specification which causes it to instead be treated as a regular bracketed character class. An example would be missing the second colon in the above like this: <code>qr/[[:alpha]]/</code>. This compiles to match a sequence of two characters. The second is <code>&quot;]&quot;</code>, and the first is any of: <code>&quot;[&quot;</code>, <code>&quot;:&quot;</code>, <code>&quot;a&quot;</code>, <code>&quot;h&quot;</code>, <code>&quot;l&quot;</code>, or <code>&quot;p&quot;</code>. This is unlikely to be the intended meaning, and now a warning is raised. No warning is raised unless the specification is very close to one of the 14 legal POSIX classes. (See <a href="perlrecharclass.html#POSIX-Character-Classes">&quot;POSIX Character Classes&quot; in perlrecharclass</a>.) [perl #8904]</p>

</li>
<li><p>Certain regex patterns involving a complemented POSIX class in an inverted bracketed character class, and matching something else optionally would improperly fail to match. An example of one that could fail is <code>qr/_?[^\Wbar]\x{100}/</code>. This has been fixed. [perl #127537]</p>

</li>
<li><p>Perl 5.22 added support to the C99 hexadecimal floating point notation, but sometimes misparses hex floats. This has been fixed. [perl #127183]</p>

</li>
<li><p>A regression that allowed undeclared barewords in hash keys to work despite strictures has been fixed. <a href="https://github.com/Perl/perl5/issues/15099">[GH #15099]</a></p>

</li>
<li><p>Calls to the placeholder <code>&amp;PL_sv_yes</code> used internally when an <code>import()</code> or <code>unimport()</code> method isn&#39;t found now correctly handle scalar context. <a href="https://github.com/Perl/perl5/issues/14902">[GH #14902]</a></p>

</li>
<li><p>Report more context when we see an array where we expect to see an operator and avoid an assertion failure. <a href="https://github.com/Perl/perl5/issues/14472">[GH #14472]</a></p>

</li>
<li><p>Modifying an array that was previously a package <code>@ISA</code> no longer causes assertion failures or crashes. <a href="https://github.com/Perl/perl5/issues/14492">[GH #14492]</a></p>

</li>
<li><p>Retain binary compatibility across plain and DEBUGGING perl builds. <a href="https://github.com/Perl/perl5/issues/15122">[GH #15122]</a></p>

</li>
<li><p>Avoid leaking memory when setting <code>$ENV{foo}</code> on darwin. <a href="https://github.com/Perl/perl5/issues/14955">[GH #14955]</a></p>

</li>
<li><p><code>/...\G/</code> no longer crashes on utf8 strings. When <code>\G</code> is a fixed number of characters from the start of the regex, perl needs to count back that many characters from the current <code>pos()</code> position and start matching from there. However, it was counting back bytes rather than characters, which could lead to panics on utf8 strings.</p>

</li>
<li><p>In some cases operators that return integers would return negative integers as large positive integers. <a href="https://github.com/Perl/perl5/issues/15049">[GH #15049]</a></p>

</li>
<li><p>The <code>pipe()</code> operator would assert for DEBUGGING builds instead of producing the correct error message. The condition asserted on is detected and reported on correctly without the assertions, so the assertions were removed. <a href="https://github.com/Perl/perl5/issues/15015">[GH #15015]</a></p>

</li>
<li><p>In some cases, failing to parse a here-doc would attempt to use freed memory. This was caused by a pointer not being restored correctly. <a href="https://github.com/Perl/perl5/issues/15009">[GH #15009]</a></p>

</li>
<li><p><code>@x = sort { *a = 0; $a &lt;=&gt; $b } 0 .. 1</code> no longer frees the GP for *a before restoring its SV slot. <a href="https://github.com/Perl/perl5/issues/14595">[GH #14595]</a></p>

</li>
<li><p>Multiple problems with the new hexadecimal floating point printf format <code>%a</code> were fixed: <a href="https://github.com/Perl/perl5/issues/15032">[GH #15032]</a>, <a href="https://github.com/Perl/perl5/issues/15033">[GH #15033]</a>, <a href="https://github.com/Perl/perl5/issues/15074">[GH #15074]</a></p>

</li>
<li><p>Calling <code>mg_set()</code> in <code>leave_scope()</code> no longer leaks.</p>

</li>
<li><p>A regression from Perl v5.20 was fixed in which debugging output of regular expression compilation was wrong. (The pattern was correctly compiled, but what got displayed for it was wrong.)</p>

</li>
<li><p><code>\b{sb}</code> works much better. In Perl v5.22.0, this new construct didn&#39;t seem to give the expected results, yet passed all the tests in the extensive suite furnished by Unicode. It turns out that it was because these were short input strings, and the failures had to do with longer inputs.</p>

</li>
<li><p>Certain syntax errors in <a href="perlrecharclass.html#Extended-Bracketed-Character-Classes">&quot;Extended Bracketed Character Classes&quot; in perlrecharclass</a> caused panics instead of the proper error message. This has now been fixed. [perl #126481]</p>

</li>
<li><p>Perl 5.20 added a message when a quantifier in a regular expression was useless, but then caused the parser to skip it; this caused the surplus quantifier to be silently ignored, instead of throwing an error. This is now fixed. [perl #126253]</p>

</li>
<li><p>The switch to building non-XS modules last in win32/makefile.mk (introduced by design as part of the changes to enable parallel building) caused the build of POSIX to break due to problems with the version module. This is now fixed.</p>

</li>
<li><p>Improved parsing of hex float constants.</p>

</li>
<li><p>Fixed an issue with <code>pack</code> where <code>pack &quot;H&quot;</code> (and <code>pack &quot;h&quot;</code>) could read past the source when given a non-utf8 source, and a utf8 target. [perl #126325]</p>

</li>
<li><p>Fixed several cases where perl would abort due to a segmentation fault, or a C-level assert. [perl #126615], [perl #126602], [perl #126193].</p>

</li>
<li><p>There were places in regular expression patterns where comments (<code>(?#...)</code>) weren&#39;t allowed, but should have been. This is now fixed. <a href="https://github.com/Perl/perl5/issues/12755">[GH #12755]</a></p>

</li>
<li><p>Some regressions from Perl 5.20 have been fixed, in which some syntax errors in <a href="perlrecharclass.html#Extended-Bracketed-Character-Classes"><code>(?[...])</code></a> constructs within regular expression patterns could cause a segfault instead of a proper error message. <a href="https://github.com/Perl/perl5/issues/14933">[GH #14933]</a> <a href="https://github.com/Perl/perl5/issues/14996">[GH #14996]</a></p>

</li>
<li><p>Another problem with <a href="perlrecharclass.html#Extended-Bracketed-Character-Classes"><code>(?[...])</code></a> constructs has been fixed wherein things like <code>\c]</code> could cause panics. <a href="https://github.com/Perl/perl5/issues/14934">[GH #14934]</a></p>

</li>
<li><p>Some problems with attempting to extend the perl stack to around 2G or 4G entries have been fixed. This was particularly an issue on 32-bit perls built to use 64-bit integers, and was easily noticeable with the list repetition operator, e.g.</p>

<pre><code>@a = (1) x $big_number</code></pre>

<p>Formerly perl may have crashed, depending on the exact value of <code>$big_number</code>; now it will typically raise an exception. <a href="https://github.com/Perl/perl5/issues/14880">[GH #14880]</a></p>

</li>
<li><p>In a regex conditional expression <code>(?(condition)yes-pattern|no-pattern)</code>, if the condition is <code>(?!)</code> then perl failed the match outright instead of matching the no-pattern. This has been fixed. <a href="https://github.com/Perl/perl5/issues/14947">[GH #14947]</a></p>

</li>
<li><p>The special backtracking control verbs <code>(*VERB:ARG)</code> now all allow an optional argument and set <code>REGERROR</code>/<code>REGMARK</code> appropriately as well. <a href="https://github.com/Perl/perl5/issues/14937">[GH #14937]</a></p>

</li>
<li><p>Several bugs, including a segmentation fault, have been fixed with the boundary checking constructs (introduced in Perl 5.22) <code>\b{gcb}</code>, <code>\b{sb}</code>, <code>\b{wb}</code>, <code>\B{gcb}</code>, <code>\B{sb}</code>, and <code>\B{wb}</code>. All the <code>\B{}</code> ones now match an empty string; none of the <code>\b{}</code> ones do. <a href="https://github.com/Perl/perl5/issues/14976">[GH #14976]</a></p>

</li>
<li><p>Duplicating a closed file handle for write no longer creates a filename of the form <i>GLOB(0xXXXXXXXX)</i>. [perl #125115]</p>

</li>
<li><p>Warning fatality is now ignored when rewinding the stack. This prevents infinite recursion when the now fatal error also causes rewinding of the stack. [perl #123398]</p>

</li>
<li><p>In perl v5.22.0, the logic changed when parsing a numeric parameter to the -C option, such that the successfully parsed number was not saved as the option value if it parsed to the end of the argument. [perl #125381]</p>

</li>
<li><p>The PadlistNAMES macro is an lvalue again.</p>

</li>
<li><p>Zero -DPERL_TRACE_OPS memory for sub-threads.</p>

<p><code>perl_clone_using()</code> was missing Zero init of PL_op_exec_cnt[]. This caused sub-threads in threaded -DPERL_TRACE_OPS builds to spew exceedingly large op-counts at destruct. These counts would print %x as &quot;ABABABAB&quot;, clearly a mem-poison value.</p>

</li>
<li><p>A leak in the XS typemap caused one scalar to be leaked each time a <code>FILE *</code> or a <code>PerlIO *</code> was <code>OUTPUT:</code>ed or imported to Perl, since perl 5.000. These particular typemap entries are thought to be extremely rarely used by XS modules. [perl #124181]</p>

</li>
<li><p><code>alarm()</code> and <code>sleep()</code> will now warn if the argument is a negative number and return undef. Previously they would pass the negative value to the underlying C function which may have set up a timer with a surprising value.</p>

</li>
<li><p>Perl can again be compiled with any Unicode version. This used to (mostly) work, but was lost in v5.18 through v5.20. The property <code>Name_Alias</code> did not exist prior to Unicode 5.0. <a href="./Unicode::UCD.html">Unicode::UCD</a> incorrectly said it did. This has been fixed.</p>

</li>
<li><p>Very large code-points (beyond Unicode) in regular expressions no longer cause a buffer overflow in some cases when converted to UTF-8. <a href="https://github.com/Perl/perl5/issues/14858">[GH #14858]</a></p>

</li>
<li><p>The integer overflow check for the range operator (...) in list context now correctly handles the case where the size of the range is larger than the address space. This could happen on 32-bits with -Duse64bitint. <a href="https://github.com/Perl/perl5/issues/14843">[GH #14843]</a></p>

</li>
<li><p>A crash with <code>%::=(); J-&gt;${\&quot;::&quot;}</code> has been fixed. <a href="https://github.com/Perl/perl5/issues/14790">[GH #14790]</a></p>

</li>
<li><p><code>qr/(?[ () ])/</code> no longer segfaults, giving a syntax error message instead. [perl #125805]</p>

</li>
<li><p>Regular expression possessive quantifier v5.20 regression now fixed. <code>qr/</code><i>PAT</i><code>{</code><i>min</i>,<i>max</i><code>}+</code><code>/</code> is supposed to behave identically to <code>qr/(?&gt;</code><i>PAT</i><code>{</code><i>min</i>,<i>max</i><code>})/</code>. Since v5.20, this didn&#39;t work if <i>min</i> and <i>max</i> were equal. [perl #125825]</p>

</li>
<li><p><code>BEGIN &lt;&gt;</code> no longer segfaults and properly produces an error message. [perl #125341]</p>

</li>
<li><p>In <code>tr///</code> an illegal backwards range like <code>tr/\x{101}-\x{100}//</code> was not always detected, giving incorrect results. This is now fixed.</p>

</li>
</ul>

<h1 id="Acknowledgements"><a class="permalink" href="perl5240delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl 5.24.0 represents approximately 11 months of development since Perl 5.24.0 and contains approximately 360,000 lines of changes across 1,800 files from 75 authors.</p>

<p>Excluding auto-generated files, documentation and release tools, there were approximately 250,000 lines of changes to 1,200 .pm, .t, .c and .h files.</p>

<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.24.0:</p>

<p>Aaron Crane, Aaron Priven, Abigail, Achim Gratz, Alexander D&#39;Archangel, Alex Vandiver, Andreas König, Andy Broad, Andy Dougherty, Aristotle Pagaltzis, Chase Whitener, Chas. Owens, Chris &#39;BinGOs&#39; Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Collins, Daniel Dragan, David Golden, David Mitchell, Doug Bell, Dr.Ruud, Ed Avis, Ed J, Father Chrysostomos, Herbert Breunung, H.Merijn Brand, Hugo van der Sanden, Ivan Pozdeev, James E Keenan, Jan Dubois, Jarkko Hietaniemi, Jerry D. Hedden, Jim Cromie, John Peacock, John SJ Anderson, Karen Etheridge, Karl Williamson, kmx, Leon Timmermans, Ludovic E. R. Tolhurst-Cleaver, Lukas Mai, Martijn Lievaart, Matthew Horsfall, Mattia Barbon, Max Maischein, Mohammed El-Afifi, Nicholas Clark, Nicolas R., Niko Tyni, Peter John Acklam, Peter Martini, Peter Rabbitson, Pip Cet, Rafael Garcia-Suarez, Reini Urban, Ricardo Signes, Sawyer X, Shlomi Fish, Sisyphus, Stanislaw Pusep, Steffen Müller, Stevan Little, Steve Hay, Sullivan Beck, Thomas Sibley, Todd Rinaldo, Tom Hukins, Tony Cook, Unicode Consortium, Victor Adam, Vincent Pit, Vladimir Timofeev, Yves Orton, Zachary Storer, Zefram.</p>

<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<p>For a more complete list of all of Perl&#39;s historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5240delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <a href="perlbug.html">perlbug</a> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<p>If the bug you are reporting has security implications which make it inappropriate to send to a publicly archived mailing list, then see <a href="perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">&quot;SECURITY VULNERABILITY CONTACT INFORMATION&quot; in perlsec</a> for details of how to report the issue.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5240delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
